package com.etc.service.impl;

import com.etc.entity.Appointment;
import com.etc.entity.Count;
import com.etc.entity.User;
import com.etc.mapper.AppointmentMapper;
import com.etc.mapper.VaccineMapper;
import com.etc.service.LotteryService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class LotteryServiceImpl implements LotteryService {

@Autowired
    private AppointmentMapper aMapper;
@Autowired
    private VaccineMapper vMapper;

@Override
public void update(Appointment appt){};

@Override
public List<Appointment> draw(){
    Count vStock =vMapper.stockCount();
    List<User> userInfo=aMapper.queryUserInfo();


//    aMapper.addLuck();
    return aMapper.queryAll();
};

@Override
public void delete(){};

}
